import request from '@/config/axios'

export interface secutorGeneralManagerVO {
                    id: number
                    post: string
                    name: string
                    dept: string
                    avator: string
                    introduction: string
}

// 查询检察长管理列表
export const getsecutorGeneralManagerPage = async (params) => {
  return await request.get({ url: '/pro/secutor-general-manager/page', params })
}

// 查询检察长管理详情
export const getsecutorGeneralManager = async (id: number) => {
  return await request.get({ url: '/pro/secutor-general-manager/get?id=' + id })
}

// 新增检察长管理
export const createsecutorGeneralManager = async (data: secutorGeneralManagerVO) => {
  return await request.post({ url: '/pro/secutor-general-manager/create', data })
}

// 修改检察长管理
export const updatesecutorGeneralManager = async (data: secutorGeneralManagerVO) => {
  return await request.put({ url: '/pro/secutor-general-manager/update', data })
}

// 删除检察长管理
export const deletesecutorGeneralManager = async (id: number) => {
  return await request.delete({ url: '/pro/secutor-general-manager/delete?id=' + id })
}

// 导出检察长管理 Excel
export const exportsecutorGeneralManagerApi = async (params) => {
  return await request.download({ url: '/pro/secutor-general-manager/export-excel', params })
}

// 检察长排班
export const scheduling = async (data) => {
  return await request.post({ url: '/pro/interview-appointment/create', data })
}

// 获取检察长排班信息列表
export const getScheduling = async (params) => {
  return await request.get({ url: '/pro/interview-appointment/page', params })
}